package com.lian.community.entity.mail;

public class Email {

    private EmailAddress from;
    private EmailAddress[] to;

    private String title;
    private String content;

    private String contentType;

    private String encoding;

    public EmailAddress getFrom() {
        return from;
    }
    public EmailAddress[] getTo() {
        return to;
    }
    public String getTitle() {
        return title;
    }
    public String getContent() {
        return content;
    }
    public String getContentType() {
        return contentType;
    }
    public String getEncoding() {
        return encoding;
    }

    public Email from(EmailAddress from) {
        this.from = from;
        return this;
    }

    public Email title(String title) {
        this.title = title;
        return this;
    }
    public Email content(String content) {
        this.content = content;
        return this;
    }
    public Email contentType(String contentType) {
        this.contentType = contentType;
        return this;
    }
    public Email encoding(String encoding) {
        this.encoding = encoding;
        return this;
    }


    public Email to(EmailAddress[] to) {
        this.to = to;
        return this;
    }


}
